package com.schoolhelper.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.schoolhelper.dao.TOrderDao;
import com.schoolhelper.entity.TOrder;
import com.schoolhelper.service.TOrderService;
import com.schoolhelper.vo.OrderCommentVo;
import com.schoolhelper.vo.OrderDiscussVo;
import com.schoolhelper.vo.OrderImgVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TOrder)表服务实现类
 *
 * @author makejava
 * @since 2021-04-23 21:03:33
 */
@Service("tOrderService")
public class TOrderServiceImpl extends ServiceImpl<TOrderDao, TOrder> implements TOrderService {
    @Autowired
    TOrderDao tOrderDao;

    @Override
    public List<OrderDiscussVo> getOrderDiscuss() {
        List<OrderDiscussVo> orderDiscuss = tOrderDao.getOrderDiscuss();
        System.out.println(orderDiscuss);
        return orderDiscuss;
    }

    @Override
    public List<OrderImgVo> getOrderImage() {
        List<OrderImgVo> orderImage = tOrderDao.getOrderImage();
        System.out.println(orderImage);
        return orderImage;
    }

    @Override
    public List<OrderCommentVo> getOrderComment() {
        List<OrderCommentVo> orderComment = tOrderDao.getOrderComment();
        System.out.println(orderComment);
        return orderComment;
    }

    @Override
    public TOrder getLastOrder() {
        TOrder lastOrder = tOrderDao.getLastOrder();
        System.out.println(lastOrder);
        return lastOrder;
    }
}
